package com.example.java_blog.model;

import com.example.java_blog.utill.DataUtills;
import lombok.Data;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 均先生
 * Date: 2024-03-10
 * Time: 15:20
 */
@Data
public class BlogInfo {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private Integer deleteFlag;
    private Date createTime;
    private Date updateTime;
    public String getCreateTime() {
        return DataUtills.formatDate(createTime);
    }
}
